import MyTable from '@/components/MyTable';
import { findByPageConsignerOrderList } from '@/services/order';

const columns = [
  {
    title: '编号',
    key: 'id',
    dataIndex: 'id',
    search: false,
  },
  {
    title: '下单人员',
    key: 'userName',
    dataIndex: 'userName',
  },
  {
    title: '发货人员',
    key: 'consignerName',
    dataIndex: 'consignerName',
  },
  {
    title: '订单号',
    key: 'sn',
    dataIndex: 'sn',
  },
  {
    title: '第三方订单',
    key: 'partySn',
    dataIndex: 'partySn',
  },
  {
    title: '产品总数',
    key: 'quantity',
    dataIndex: 'quantity',
    search: false,
  },
  {
    title: '订单时间',
    key: 'createDate',
    dataIndex: 'createDate',
    valueType: 'dateRange',
    hideInTable: true,
    // initialValue: [moment().calendar(), moment().add(10, 'days').calendar()],
  },
  {
    title: '订单时间',
    key: 'createDate',
    dataIndex: 'createDate',
    valueType: 'dateTime',
    search: false,
  },
  {
    title: '操作人员',
    key: 'operatorName',
    dataIndex: 'operatorName',
    search: false,
  },
];
const Consigner = () => {
  return <MyTable request={findByPageConsignerOrderList} columns={columns} />;
};
export default Consigner;
